﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Stage_Block_A_Controller : MonoBehaviour
{

    Animator am;
    void Start()
    {
        am = GetComponent<Animator>();
    }
    void OnTriggerEnter2D(Collider2D other)
    {

        if (other.gameObject.tag.Equals("PlayerArm"))
        {
            am.enabled = true;
            am.SetTrigger("Destroy");
            Destroy(gameObject, 0.5F);
        }
    }
    

    void Update()
    {

    }
}
